/**
 * Created by user on 2018/4/16.
 */
const PREFIX = 'login_'

const LoginType = {
  toggle_login_loading: PREFIX + 'toggle_login_loading',
  toggle_auth: PREFIX + 'toggle_auth',
}

const toggleLoginLoading = (bool) => {
  return {
    type: LoginType.toggle_login_loading,
    loading: bool
  }
}

const toggleAuth = (bool) => {
  return {
    type: LoginType.toggle_auth,
    auth: bool
  }
}

module.exports = {
  LoginType,
  toggleLoginLoading,
  toggleAuth
}
